<div xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     class="locale right">

    <h:form>
        <h:selectOneMenu value="#{localeBean.language}" onchange="submit()">
            <f:selectItem itemValue="ru" itemLabel="Русский"/>
            <f:selectItem itemValue="en" itemLabel="English"/>
        </h:selectOneMenu>
    </h:form>
</div>